package com.kellyfeng.spittr.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.thymeleaf.spring4.SpringTemplateEngine;

@Controller
public class HomeController {
	@RequestMapping(value="/", method=RequestMethod.GET)
	public String home(Model model){
		return "home";
	}
	
	@RequestMapping(value="/ajax", method=RequestMethod.GET)
	public String ajax(Model model){
		return "ajax";
	}
}
